#文件信息管理模块
#项目经理修改

CC = gcc
CFLAGS = -I../Include -Wall
MODE ?= FILE

SOURCES = file_io.c
OBJECTS = $(SOURCES:.c=.o)

ifeq ($(MODE), FILE)
	CFLAGS += -DINPUT_MODE_FILE
else
	CFLAGS += -DINPUT_MODE_CLI
endif

.PHONY: all clean

all:$(OBJECTS)

%.o:%.c
	$(CC) $(CFLAGS) -c $< -o $@
clean:
	$(RM) $(OBJECTS)
